package com.yuyou.train.lesson.service;

import java.util.List;

import com.yuyou.train.service.api.lesson.dto.ExamDetailDTO;
import com.yuyou.train.service.api.lesson.dto.ExamPageDTO;
import com.yuyou.train.service.api.lesson.entity.ResourceExam;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

public interface IResourceExamService {
    int deleteByPrimaryKey(String id);

    ResBoolSimpleInfo<String> delExam(String id);
    
    int insert(ResourceExam record);
    
    ResBoolSimpleInfo<String> addExam(ResourceExam record);

    ResBoolSimpleInfo<String> updateExam(ResourceExam record);

    ResourceExam selectByPrimaryKey(String id);

    ExamDetailDTO selectDetailByPrimaryKey(String id);
    
    int updateByPrimaryKeySelective(ResourceExam record);
    
    List<ExamPageDTO> findExamPageList(Pagination<ExamPageDTO> p);
    
    int findExamPageCount(Pagination<ExamPageDTO> p);

    ResBoolSimpleInfo<String> batchUpdateStatus(List<String> ids, String isUse);

//    ResBoolSimpleInfo<String> isLessonUse(String id);

	ResBoolSimpleInfo<String> hasLessonRel(String id);
    
}